package com.ruoyi.process.pipemaintainence.service;


import com.ruoyi.process.pipemaintainence.domain.BpmnCopyProcess;

import java.util.List;
import java.util.Map;

public interface BpmnCopyProcessService {
    int deleteByPrimaryKey(String id);

    int insert(BpmnCopyProcess record);

    int insertSelective(BpmnCopyProcess record);

    BpmnCopyProcess selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(BpmnCopyProcess record);

    int updateByPrimaryKey(BpmnCopyProcess record);

    void batchInsert(List<BpmnCopyProcess> list);

    List<BpmnCopyProcess> findByUserId(String userId);

    List<String> findReceiverByProceInstanceId(String processInstanceId);

    /**
     * 根据用户分页查询抄送的流程
     *
     * @param pageNo
     * @param pageSize
     * @param userId
     * @return
     */
    List<Map<String, Object>> findCopyProcessByUserId(Integer pageNo, Integer pageSize, String userId);

    /**
     * 通过业务id查询抄送流程
     *
     * @param businessKey
     * @return
     */
    List<BpmnCopyProcess> findByBusinessKey(String businessKey);
}